]> dgit.raspbian.org Git - gnome-shell.git/commit
Explicitly convert raw data to strings
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 30 Jul 2018 12:35:27 +0000 (14:35 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Tue, 31 Jul 2018 16:28:53 +0000 (16:28 +0000)
commit7ca418a79afed9d8b99644439e769c0416ee2263
tree6f42fe760e1df54b3d463575e14fea7341a72f00
parenta9ad91c831d6c25d5de38c7281415c0740aefdcc
Explicitly convert raw data to strings

As strings are guaranteed to use UTF-8 in the GNOME platform, generic
file APIs like g_file_load_contents() return raw data instead. Since
gjs' recent update to mozjs60, this data is now returns as Uint8Array
which cannot simply be treated as string - its toString() method boils
down to arr.join(',') - so use gjs' new ByteArray module to explicitly
convert the data.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/179
js/misc/extensionUtils.js
js/ui/keyboard.js
js/ui/padOsd.js
js/ui/sessionMode.js